﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SPPivotViewerSettings.aspx.cs"
    Inherits="SPPivotViewer.Layouts.SPPivotViewer.SPPivotViewerSettings" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table class="ms-propertysheet" border="0" width="100%" cellspacing="0" cellpadding="0">
        <wssuc:InputFormSection Title="Allow WebPart level Customization" Description="Setup Site Collection Pivot Viewer."
            runat="server">
            <template_inputformcontrols>
                <asp:CheckBox  Text="Allow Document Thumbnail"  class="ms-input" ID="chkOfficeWebApps" Runat="server"/><br />
                <asp:CheckBox  Text="Allow Custom UI" class="ms-input" ID="chkCustomUI" Runat="server"/><br />
                <asp:CheckBox  Text="Three Layer Deep Zoom" class="ms-input" ID="chk3Layer" Runat="server"/><br />
			</template_inputformcontrols>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection Title="Cache Settings" Description="Setup Site Collection Pivot Viewer."
            runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl LabelText="Cache Settings for Collection" LabelAssociatedControlID="txtHourCache" runat="server">
                    <Template_Control>
                        <SharePoint:InputFormTextBox Title="Hour" 
                            class="ms-input" 
                            ID="txtHourCache" 
                            Runat="server" 
                            MaxLength="2" Width="20"  />:
                    <SharePoint:InputFormTextBox Title="Minute" 
                            class="ms-input" 
                            ID="txtMinuteCache" 
                            Runat="server" 
                            MaxLength="3"  Width="20"  />:
                    <SharePoint:InputFormTextBox Title="Second" 
                            class="ms-input" 
                            ID="txtSecondCache" 
                            Runat="server" 
                            MaxLength="3"  Width="20" />
                    </Template_Control>
				</wssuc:InputFormControl> 
			</template_inputformcontrols>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection Title="Substitute Image" runat="Server">
            <template_inputformcontrols>
                <wssuc:InputFormControl LabelText="URL of Substitute Image" LabelAssociatedControlID="txtSubstituteImage" runat="server">
                    <Template_Control>
                        <SharePoint:InputFormTextBox Title="URL of Substitute Image" 
                    class="ms-input" 
                    ID="txtSubstituteImage" 
                    Runat="server" 
                    MaxLength="255"  />
                    </Template_Control>
				</wssuc:InputFormControl>             
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        

        <wssuc:InputFormSection Title="Pivot Viewer Throttle" runat="Server">
            <template_inputformcontrols>
                <wssuc:InputFormControl LabelText="Max Number of elements (100-999)" LabelAssociatedControlID="txtThrottling" runat="server">
                    <Template_Control>
                        <SharePoint:InputFormTextBox Title="Max Number of elements" 
                    class="ms-input" 
                    ID="txtThrottling" 
                    Runat="server" 
                    MaxLength="3"  />
                    </Template_Control>
				</wssuc:InputFormControl>             
            </template_inputformcontrols>
        </wssuc:InputFormSection>

        <!--OK and Cancel buttons-->
        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
            <template_buttons>
				    <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="btnOK_Click" Text="<%$Resources:wss,multipages_okbutton_text%>" id="btnOK" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
				    <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="btnCancel_Click" Text="<%$Resources:cms, multipages_cancelbutton_text%>" id="btnCancel" CausesValidation="false" AccessKey="<%$Resources:cms,cancelbutton_accesskey%>"/>
			    </template_buttons>
        </wssuc:ButtonSection>
    </table>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Pivot Viewer Settings
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    Pivot Viewer Settings
</asp:Content>
<asp:Content ID="PlaceSiteName" ContentPlaceHolderID="PlaceHolderSiteName" runat="server">
    <a href="../settings.aspx">
        <SharePoint:EncodedLiteral ID="enSiteName" runat="server" Text="<%$Resources:wss,sitecollectionsettings_pagetitle%>"  EncodeMethod="HtmlEncode" />
     </a>
</asp:Content>
